﻿using Digitalmes.Model.EquipmentManagement;
using Digitalmes.Model.FactoryManagement;
using Digitalmes.Model.ProductManagement;
using Microsoft.EntityFrameworkCore;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Attributes;

namespace Digitalmes.Model
{
    public class _PlaceHolder_
    {
    }

    [MiddleTable]
    public class ProductProductionLine : BasePoco, ITenant
    {
        [Display(Name = "_Model.ProductionLine")]
        public ProductionLine ProductionLine { get; set; }
        [Display(Name = "_Model.ProductionLine")]
        [Required()]
        public long? ProductionLineId { get; set; }
        [Display(Name = "_Model.Product")]
        public Product Product { get; set; }
        [Display(Name = "_Model.Product")]
        [Required()]
        public long? ProductId { get; set; }
        public string TenantCode { get; set; }
    }


    [MiddleTable]
    public class EquipmentProductionLine : BasePoco, ITenant
    {
        [Display(Name = "_Model.ProductionLine")]
        public ProductionLine ProductionLine { get; set; }
        [Display(Name = "_Model.ProductionLine")]
        [Required()]
        public long? ProductionLineId { get; set; }
        [Display(Name = "_Model.Equipment")]
        public Equipment Equipment { get; set; }
        [Display(Name = "_Model.Equipment")]
        [Required()]
        public long? EquipmentId { get; set; }
        public string TenantCode { get; set; }
    }
}
